package kocla.com.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;

public class TestActivity extends AppCompatActivity {


    private CircleView circleView;
    int i = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        circleView = (CircleView) findViewById(R.id.circleView);

        TimerTask tt = new TimerTask() {
            @Override
            public void run() {
                circleView.setProgress(i);
                i++;
            }

        };
        new Timer().schedule(tt, 0, 10);


    }

}
